package com.clss.commandhelper.function.supportTeam;

import android.content.Context;

import com.clss.commandhelper.base.BaseJson;
import com.clss.commandhelper.base.BaseModel;
import com.clss.commandhelper.net.ApiClient;
import com.clss.commandhelper.tools.SpHelper;

import java.util.HashMap;
import java.util.Map;

import retrofit2.Callback;

/**
 * Created by Administrator on 2017/11/30.
 */

public class SupportTeamListModel extends BaseModel {
    public SupportTeamListModel(Context context) {
        super(context);
    }

    public void getPoliceList(Callback<BaseJson> callback){
        mCall = ApiClient.apiList.getSupportPoliceList(SpHelper.getInstance().getToken());
        mCall.enqueue(callback);
    }

    public void askSupport(String taskId,String userIds,Callback<BaseJson> callback){
        Map<String,String> map = new HashMap<>();
        map.put("taskId",taskId);
        map.put("userIds",userIds);
        mCall = ApiClient.apiList.askSupportTask(SpHelper.getInstance().getToken(),map);
        mCall.enqueue(callback);
    }
}
